/*
 * IndexedDictionaryListenerProxy.java
 *
 * Copyright(c) 2010
 * Michael Kroez
 * kroez@studiorutton.de
 *
 * All rights reserved.
 *
 * $Id$
 * 
 */

package de.studiorutton.gerengdic.indexeddictionary;

import android.content.Context;
import android.content.res.Resources;

public class IndexedDictionaryListenerProxy implements
		IIndexedDictionaryView {
	private IIndexedDictionaryView idl;
	
	public IndexedDictionaryListenerProxy() {
		
	}

	public IndexedDictionaryListenerProxy(IIndexedDictionaryView idl) {
		this.idl = idl;
	}

	public void setIndexedDictionaryListener(IIndexedDictionaryView idl) {
		this.idl = idl;
	}

	public void updateEditText() {
		idl.updateEditText();
	}

	public void updateSearchList( boolean setSelectionFromTop ) {
		idl.updateSearchList( setSelectionFromTop );
	}

	public void updateLanguageButton() {
		idl.updateLanguageButton();
	}

	public void showErrorDialog(String msg) {
		idl.showErrorDialog(msg);
	}

	public Context getContext() {
		return idl.getContext();
	}
	
	public Resources getResources() {
		return idl.getResources();
	}

	public void setSelectionFromTop(int position) {
		idl.setSelectionFromTop(position);
	}

}
